import request from '@/utils/request'

// 获取表格数据
export const tableData = (task_id) => {
  return request({
    url: '/tolerance/table_data',
    method: 'get',
    params: {
      task_id: task_id
    }
  })
}

// 开始计算
export const startCalculation = () => {
  return request({
    url: '/tolerance/calculate',
    method: 'post'
  })
}